package com.bwie.gateway.config;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * @className: IgnoreWhiesConfig
 * @Description: TODO
 * @version: v1.８.0
 * @author:
 * @date: 
 */
@Data
@Log4j2
@Configuration
@ConfigurationProperties(prefix = "ignore")
public class IgnoreWhitesConfig {
    /**
     * 白名单请求
     */
    private List<String> whites = new ArrayList<>();

    public void setWhites(List<String> whites) {
        log.info("加载白名单请求，白名单请求有：{}", JSONObject.toJSONString(whites));
        this.whites = whites;
    }
}